let Main = () => import('@/views/Main.vue')
export default [
    // ===首页===
    {
        path: "",
        name: "home",
        component: Main,//首页
        meta: {
            title: "home",
            icon: 'icon-icon_home'
        },
        children: [
            {
                path: "dashboard",
                name: "dashboard",
                component: () => import('@/views/page/Dashboard.vue'),
                meta: {
                    title: "home"
                }
            },
        ]
    },
    // ===运营管理===
    {
        path: 'operateManage',
        name: 'operateManage',
        component: Main,
        meta: {
            title: 'business.operateManage',
            icon: 'icon-tongji'
        },
        children: [
            {
                path: 'OrderManage',//订单管理
                name: 'OrderManage',
                component: () => import('@/views/page/operateManage/OrderManage.vue'),
                meta: {
                    title: 'business.orderManage'
                }
            }, {
                path: 'Comment',//评论管理
                name: 'Comment',
                component: () => import('@/views/page/operateManage/Comment.vue'),
                meta: {
                    title: 'business.comment'
                }
            }, {
                path: 'FareManage',//运费管理
                name: 'FareManage',
                component: () => import('@/views/page/operateManage/FareManage.vue'),
                meta: {
                    title: 'business.fareManage'
                }
            },
        ]
    },
    //===商品管理===
    {
        path: 'goodsManage',
        name: 'goodsManage',
        component: Main,
        meta: {
            title: 'goods.goodsManage',
            icon: 'icon-goods'
        },
        children: [
            {
                path: 'GoodsList',//商品列表
                name: 'GoodsList',
                component: () => import('@/views/page/goodsManage/GoodsList.vue'),
                meta: {
                    title: 'goods.goodsList'
                }
            }, {
                path: 'Create',//商品列表添加页面
                name: 'GoodsCreate',
                component: () => import('@/views/page/goodsManage/GoodsCreate.vue'),
                meta: {
                    title: 'goods.goodsListCreate',
                    hidden: true,//左侧功能菜单不显示
                    KeepAlive:true //数据存缓
                }
            }, {
                path: 'Modify/:id',//商品列表编辑页面
                name: 'GoodsModify',
                props: true,
                component: () => import('@/views/page/goodsManage/GoodsModify.vue'),
                meta: {
                    title: 'goods.goodsListEdit',
                    hidden: true,//左侧功能菜单不显示
                    KeepAlive:true
                }
            }, {
                path: 'GroupGoods',//团购商品
                name: 'GroupGoods',
                component: () => import('@/views/page/goodsManage/GroupGoods.vue'),
                meta: {
                    title: 'goods.groupGoods'
                }
            }, {
                path: 'Category',//类目管理
                name: 'Category',
                component: () => import('@/views/page/goodsManage/Category.vue'),
                meta: {
                    title: 'goods.category'
                }
            },
        ]
    },
    //===推广管理===
    {
        path: 'spreadManage',
        name: 'spreadManage',
        component: Main,
        meta: {
            title: 'extend.spreadManage',
            icon: 'icon-fenlei'
        },
        children: [
            {
                path: 'AdvManage',//广告管理
                name: 'AdvManage',
                component: () => import('@/views/page/spreadManage/AdvManage.vue'),
                meta: {
                    title: 'extend.advManage'
                }
            }, {
                path: 'CouponManage',//优惠券管理
                name: 'CouponManage',
                component: () => import('@/views/page/spreadManage/CouponManage.vue'),
                meta: {
                    title: 'extend.couponManage'
                }
            }
        ]
    },
    //===用户管理===
    {
        path: 'userManage',
        name: 'userManage',
        component: Main,
        meta: {
            title: 'user.userManage',
            icon: 'icon-custom-user'
        },
        children: [
            {
                path: 'Member',//会员管理
                name: 'Member',
                component: () => import('@/views/page/userManage/Member.vue'),
                meta: {
                    title: 'user.member'
                }
            }, {
                path: 'AddrManage',//地址管理
                name: 'AddrManage',
                component: () => import('@/views/page/userManage/AddrManage.vue'),
                meta: {
                    title: 'user.addrManage'
                }
            }
        ]
    },
    //===系统管理===
    {
        path: 'systemManage',
        name: 'systemManage',
        component: Main,
        meta: {
            title: 'system.systemManage',
            icon: 'icon-setting'
        },
        children: [
            {
                path: 'Setting',//系统配置
                name: 'Setting',
                component: () => import('@/views/page/systemManage/Setting.vue'),
                meta: {
                    title: 'system.setting'
                }
            }, {
                path: 'AdminUser',//管理员
                name: 'AdminUser',
                component: () => import('@/views/page/systemManage/AdminUser.vue'),
                meta: {
                    title: 'system.adminUser'
                }
            }, {
                path: 'OperateLog',//操作日志
                name: 'OperateLog',
                component: () => import('@/views/page/systemManage/OperateLog.vue'),
                meta: {
                    title: 'system.operateLog'
                }
            }, {
                path: 'RoleManage',//角色管理
                name: 'RoleManage',
                component: () => import('@/views/page/systemManage/RoleManage.vue'),
                meta: {
                    title: 'system.roleManage'
                }
            }
        ]
    }
]